#include "mystdlib.h"
#include <stdio.h>
#include <string.h>
#include <sys/types.h>
#include <unistd.h>
#define FILE_NAME "./log.txt"
int main()
{
    _MyFILE* file = MyFopen(FILE_NAME, "w");
    char buffer[128];
    for (int i = 0; i < 5 ;i++)
    {
        sprintf(buffer, "This is message:%d---", i);
        MyFwrite(file, buffer, strlen(buffer));
        //DebugPrint(file);
    }
    fork();
    MyFclose(file);
    return 0;
}